package com.ovstech.commons.web.result;

import lombok.Data;

import java.io.Serializable;

@Data
public class RESTResult<T extends Serializable> implements Serializable {

    private String code;

    private String message;

    private T data;

    public RESTResult() {
    }

    public RESTResult(T data) {
        this.data = data;
    }

    public RESTResult(String code, T data) {
        this.code = code;
        this.data = data;
    }
}
